package com.nuc.zyt.day05.bio;

import java.io.PrintStream;
import java.net.Socket;
import java.util.Scanner;

/**
 * @ClassName Client
 * @Description TODO
 * @Author 耀酱
 * @Date 2023/5/31 8:23
 * @Version 1.0
 */

public class Client {
    public static void main(String[] args) {
        try {
            Socket socket = new Socket("127.0.0.1",9999);
            PrintStream ps = new PrintStream(socket.getOutputStream());

            Scanner sc = new Scanner(System.in);

            while (true){
                System.out.println("请说");
                String str = sc.nextLine();
                ps.println(str);
                ps.flush();
            }

        }catch (Exception e){

        }





    }
}
